package ajax.quanxuan.sys.service;

import ajax.quanxuan.sys.entity.Dept;
import ajax.quanxuan.sys.entity.Permission;
import ajax.quanxuan.sys.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author KazuGin
 * @since 2024-07-04
 */
public interface PermissionService extends IService<Permission> {
    /**
     * 根据角色id查询改角色拥有的权限id集合
     * @param roleId
     * @return
     */

    List<Integer> findRolePermissionByRoleId(int roleId);
    List<Permission> list(Permission permission);
    List<Permission> listAll(Permission permission);
    List<Permission> listMun(Permission permission);
    List<Permission> listMunleft(Permission permission);
  List<Permission> findById(String pidlist);

    List<Permission> listrolemun(String pidlist);
    Integer countmenu (Permission permission);
    List<Permission> listPermission(Permission permission);
    Integer countPermission (Permission permission);
    List<Permission> listPermissiontrerr(Permission permission);

}
